package demo12;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description: 通过注解来实现AOP
 * @author: apple
 * @date:  2022/2/3 9:34 下午
 * @version 1.0
 **/
public class PersonTest {

    @Test
    public void test1() {

        ApplicationContext context = new ClassPathXmlApplicationContext("bean11.xml");
        final Person user = context.getBean("person", Person.class);
        System.out.println(user);
        user.add();
    }
}
